//
//  EDSCustomLeftRightBtnView.h
//  DrivieSchoolStudents
//
//  Created by TangBin on 2019/6/19.
//  Copyright © 2019 班文政. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, EN_BUTTON_TYPE_TAG)
{
    EN_BUTTON_TYPE_CANCEL_TAG = 100, ///< 取消
    EN_BUTTON_TYPE_SUBMIT_TAG, ///< 确认
};

#define kEDSCustomLeftRightBtnViewHeight (44)

/**
 左右各有一个按钮 取消、确认
 */
@interface EDSCustomLeftRightBtnView : UIView
@property (nonatomic, strong, readonly) UILabel *titleLabel;
@property (nonatomic, strong) UIColor *buttonTextColor;
@property (nonatomic, strong) UIColor *bottomLineColor;
@property (nonatomic, copy) void(^touchButtonBlock)(EN_BUTTON_TYPE_TAG tag);

/**
 初始化

 @param frame frame description
 @param leftTitle 左边按钮的标题
 @param leftColor 左边按钮的颜色
 @param rightTitle 右边按钮的标题
 @param rightColor 右边按钮的颜色
 @return return value description
 */
- (instancetype)initWithFrame:(CGRect)frame leftTitle:(NSString *)leftTitle leftColor:(UIColor *)leftColor rightTitle:(NSString *)rightTitle rightColor:(UIColor *)rightColor;
@end

NS_ASSUME_NONNULL_END
